package product;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class SaleData implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String proCode;// 제품코드
	String proName;// 제품이름
	int proPrice;// 단가
	int saleEa;// 판매량
	int proTot;// 판매총액
	String saleDate;
	int saleCnt;// 판매번호
	
	public SaleData(String c, String n, int p, int e, int t,
			int cnt) {
		SimpleDateFormat sd = new SimpleDateFormat("yyMMdd");
		this.proCode = c;
		this.proName = n;
		this.proPrice = p;
		this.saleEa = e;
		this.proTot = t;
		this.saleCnt = cnt;
		this.saleDate = sd.format(new Date());
	}



	public String getProCode() {
		return proCode;
	}

	public void setProCode(String proCode) {
		this.proCode = proCode;
	}

	public String getProName() {
		return proName;
	}

	public void setProName(String proName) {
		this.proName = proName;
	}

	public int getProPrice() {
		return proPrice;
	}

	public void setProPrice(int proPrice) {
		this.proPrice = proPrice;
	}

	public int getSaleEa() {
		return saleEa;
	}

	public void setSaleEa(int saleEa) {
		this.saleEa = saleEa;
	}

	public int getProTot() {
		return proTot;
	}

	public void setProTot(int proTot) {
		this.proTot = proTot;
	}

	public int getSaleCnt() {
		return saleCnt;
	}

	public void setSaleCnt(int saleCnt) {
		this.saleCnt = saleCnt;
	}

	public String getSaleDate() {
		return saleDate;
	}

	public void setSaleDate(String saleDate) {
		this.saleDate = saleDate;
	}

	

}
